   /* DB Struture
     * car: carId, make, model, fuelType, regNum, hireCar
     * carService: serviceID, clientId, carId, locationId, mechanicId, typeId, serviceDate, serviceTime, serviceDurationHour, description, price, bookingDate, mileage
     * client: clientId, forname, surname, dob, addLine1, addLine2, city, county, postcode, homeNum, mobileNum, email
     * location: locationId, branch
     * mechanic: mechanicId, forename, surname, mobNum
     * serviceType: typeId, typeOfService
     */
package prettypenny;

public class Mechanic {
    private int mechanicID;
    private String mechanicForename;
    private String mechanicSurname;
    private String mechanicMobile;
    
     public Mechanic(int id, String forename, String surname, String mobile) {
        this.mechanicID = id;
        this.mechanicForename = forename;
        this.mechanicSurname = surname;
        this.mechanicMobile = mobile;
    }

    public void setID(int value) {
        this.mechanicID = value;
    }
    public void setForename(String value) {
        this.mechanicForename = value;
    }
    public void setSurname(String value) {
        this.mechanicSurname = value;
    }
    public void setMobile(String value) {
        this.mechanicMobile = value;
    }
       
    public String getName() {
        return this.mechanicForename + " " +this.mechanicSurname;
    }
    public int getID() {
        return this.mechanicID;
    }
    public String getForename() {
        return mechanicForename;
    }
    public String getSurname() {
        return mechanicSurname;
    }
    public String getMobile() {
        return mechanicMobile;
    }
}
